#define _CRT_SECURE_NO_WARNINGS 1
#include <stdio.h>
int main()
{
	int i, n, ret;
	int sum = 0;
	for (i = 1; i <= 10; i++)
	{
		ret = 1;
		for (n = 2; n < i + 1; n++)
		{
			ret *= n;
		}
		sum += ret;

	}
	printf("%d", sum);
	return 0;
}